package cn.tedu.logistics.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.tedu.logistics.bean.InputInfo;
import cn.tedu.logistics.dao.InputInfoDao;

@Service
public class InputServicempI implements InputService {
	@Autowired
	private InputInfoDao inputInfoDao;

	@Override
	public List<InputInfo> findAll() {
		List<InputInfo> list = inputInfoDao.selectList(null);
		return list;
	}

	@Override
	public InputInfo getInputById(String inputid) {
		InputInfo selectById = inputInfoDao.selectById(inputid);
		return selectById;
	}

	@Override
	public void updateBook(InputInfo inputInfo) {
		inputInfoDao.updateById(inputInfo);		
	}

	@Override
	public void addinput(InputInfo inputInfo) {
		inputInfoDao.insert(inputInfo);	
	}

	@Override
	public void delbyId(String inputid) {
		inputInfoDao.deleteById(inputid);		
	}
	@Override
	public void inputExecute() {
		// TODO Auto-generated method stub
		
	}

}
